<template>
  <Mapbox :mapOnLoadCB="mapOnLoadCB"></Mapbox>
  <div id="features"></div>
</template>

<script>
import {ref} from "vue"
import Mapbox from "@/components/common/Mapbox.component.vue"
import MapboxCommonService from "@/service/map/MapboxCommonService"

export default {
  name: "ShowMapProperty.component",
  components: {Mapbox},
  setup() {

    let mapStore = ref({});
    let mapOnLoadCB = (map) => {
      mapStore.value = map;
      $("#features").css("display", "block");
      MapboxCommonService.queryEntryProperty(map);
    };

    return {
      mapOnLoadCB
    }
  }
}
</script>

<style scoped lang="scss">
#features {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 400px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  overflow: auto;
}
</style>